#! /usr/bin/env python

import roslib; roslib.load_manifest('storage')
import rospy
import sqlite3
import actionlib
import roslib.scriptutil
from storage.msg import *

if __name__ == '__main__':
	rospy.init_node("storageClient")
	client = actionlib.SimpleActionClient("addImage",addPersonAction)
	client.wait_for_server()
	goal=addPersonGoal()
	#imageID
	goal.target.append("18")
	#URL for base image
	goal.target.append("http://flickr.com")
	#directory for cropped faces
	goal.target.append("../ros_workspace/storage/faces")
	#number of faces
	goal.target.append("2")
	client.send_goal(goal)
	client.wait_for_result()
